

let allEchartsOption = {
    // 特殊作业   特殊作业分布
    tszyBarLine: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        legend: {
            data: ["平均处理时间", "最长处理时间"],

            top: 10
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            orient: 'vertical',
            handleStyle: {
                color: '#0284FE'
            },

        }],
        grid: {
            top: 50,
            bottom: 25,
            left: 25,
            right: 70,
            containLabel: true
        },
        color: ['#1890FF', '#2FC25B', '#FFAF2E', '#2FC25B', '#82D926'],
        calculable: true,
        xAxis: [{
            type: "value",
            axisLine: {
                show: false
            },

            axisLabel: {
                color: 'rgba(84,84,84,1)',

            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        yAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 特殊作业 特殊作业趋势分析
    tszyline2: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        legend: {
            data: ["平均处理时间", "最长处理时间"],

            top: 10
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            handleStyle: {
                color: '#0284FE'
            },
            bottom: 10
        }],
        grid: {
            top: 40,
            bottom: 50,
            left: 25,
            right: 25,
            containLabel: true
        },
        color: ['#1890FF', '#2FC25B', '#FFAF2E', '#FA9937', '#82D926'],
        calculable: true,
        yAxis: [{
            type: "value",
            axisLine: {
                show: false
            },
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        xAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 特殊作业 特殊作业作业量分布
    tszyline1: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },

        grid: {
            top: 25,
            bottom: 15,
            left: 25,
            right: 25,
            containLabel: true
        },
        color: ['#F2637B', '#FFAF2E', '#FBD449', '#FA9937', '#82D926'],
        calculable: true,
        yAxis: [{
            type: "value",
            axisLine: {
                show: false
            },
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        xAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    //风险承诺 1未承诺分布
    fxcnBar: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },

        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            orient: 'vertical',
            handleStyle: {
                color: '#0284FE'
            },

        }],
        grid: {
            top: 25,
            bottom: 25,
            left: 25,
            right: 70,
            containLabel: true
        },
        color: ['#FF7800', '#F79800', '#1890FF', '#2FC25B', '#82D926'],
        calculable: true,
        xAxis: [{
            type: "value",
            axisLine: {
                show: false
            },

            axisLabel: {
                color: 'rgba(84,84,84,1)',

            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }
        ],
        yAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 风险承诺 未承诺趋势分析
    fxcnline1: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            handleStyle: {
                color: '#0284FE'
            },
            bottom: 10
        }],
        grid: {
            top: 25,
            bottom: 50,
            left: 25,
            right: 25,
            containLabel: true
        },
        color: ['#FF7800', '#FFAF2E', '#FBD449', '#FA9937', '#82D926'],
        calculable: true,
        yAxis: [{
            type: "value",
            axisLine: {
                show: false
            },
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        xAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 监测预警柱状图1预警分布
    jcyjBarLine: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        legend: {
            data: ["平均处理时间", "最长处理时间"],

            top: 10
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            orient: 'vertical',
            handleStyle: {
                color: '#0284FE'
            },

        }],
        grid: {
            top: 60,
            bottom: 25,
            left: 25,
            right: 70,
            containLabel: true
        },
        color: ['#F2637B', '#F79800', '#1890FF', '#2FC25B', '#82D926'],
        calculable: true,
        xAxis: [{
            type: "value",
            axisLine: {
                show: false
            },

            axisLabel: {
                color: 'rgba(84,84,84,1)',

            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        },
        {
            type: "value",
            position: 'top',
            axisLine: {
                show: false
            }, max: 100,
            axisLabel: {
                color: 'rgba(84,84,84,1)',
                formatter: '{value} %'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        yAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 监测预警柱状图1预警处理响应时间分析
    jcyjline2: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        legend: {
            data: ["平均处理时间", "最长处理时间"],

            top: 10
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            handleStyle: {
                color: '#0284FE'
            },
            bottom: 10
        }],
        grid: {
            top: 40,
            bottom: 50,
            left: 25,
            right: 25,
            containLabel: true
        },
        color: ['#1890FF', '#2FC25B', '#FBD449', '#FA9937', '#82D926'],
        calculable: true,
        yAxis: [{
            type: "value",
            axisLine: {
                show: false
            },
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        xAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 监测预警柱状图1趋势分析配置
    jcyjline1: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        legend: {
            data: ["红色预警", "橙色预警"],

            top: 10
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 100,
            handleStyle: {
                color: '#0284FE'
            },
            bottom: 10
        }],
        grid: {
            top: 40,
            bottom: 50,
            left: 25,
            right: 25,
            containLabel: true
        },
        color: ['#F2637B', '#FFAF2E', '#FBD449', '#FA9937', '#82D926'],
        calculable: true,
        yAxis: [{
            type: "value",
            axisLine: {
                show: false
            },
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        xAxis: {
            type: "category",
            data: ["城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1", "城市1",
                "城市1", "城市1", "城市1"
            ],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "红色预警",
            type: "line",
            data: [320, 302, 301, 334, 390, 330, 320, 320, 302, 301, 334, 390, 330, 32]
        },
        {
            name: "橙色预警",
            type: "line",

            data: [120, 132, 101, 134, 90, 230, 210, 320, 302, 301, 334, 390, 330, 32]
        }
        ]
    },
    // 一、二级重大危险源企业及危险源分布
    bar: {
        tooltip: {
            trigger: "axis",
            axisPointer: {
                type: "shadow"
            }
        },
        legend: {
            data: [],
            top: 10
        },
        dataZoom: [{
            fillerColor: 'rgba(2,132,254,0.2)',
            end: 50,
            handleStyle: {
                color: '#0284FE'
            },
            bottom: 19
        }],
        grid: {
            bottom: '25%',
            left: 40,
            right: 40,
            containLabel: true
        },
        color: ['#FA6400', '#FFCBA9', '#1890FF', '#B4DBFF', '#82D926'],
        calculable: true,
        yAxis: [{
            type: "value",
            axisLine: {
                show: false
            },
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed"
                }
            }
        }],
        xAxis: {
            type: "category",
            data: [],
            axisLabel: {
                color: 'rgba(84,84,84,1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                lineStyle: {
                    color: "##BFBFBF"
                }
            },
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    width: 1
                }
            }
        },
        series: [{
            name: "覆盖率0-10",
            type: "bar",
            itemStyle: {
                barBorderRadius: 2
            },
            data: []
        },
        {
            name: "覆盖率10-30",
            type: "bar",
            itemStyle: {
                barBorderRadius: 2
            },

            data: []
        },
        {
            name: "覆盖率30-50",
            type: "bar",
            itemStyle: {
                barBorderRadius: 2
            },

            data: []
        },
        {
            name: "覆盖率50以上",
            type: "bar",
            itemStyle: {
                barBorderRadius: 2
            },
            data: []
        }
        ]

    },
    countyMap: {
        visualMap: { //颜色的设置  dataRange
            show: false,
            x: 'left',
            y: 'center',
            seriesIndex: [1],
            min: 0,
            max: 200,
            text: ['高', '低'], // 文本，默认为数值文本
            textStyle: {
                color: '#fff'
            },
            inRange: {
                color: []
            }
        },
        geo: {
            map: 'jiangs',
            left: '280',
            itemStyle: { //地图区域的多边形 图形样式
                color: '#fff',
                normal: { //是图形在默认状态下的样式
                    label: {
                        show: true, //是否显示标签
                        textStyle: {
                            color: '#ff0'
                        },
                    },

                    borderWidth: 1,
                    borderColor: 'rgba(255,255,255)',
                    shadowColor: '#e8e8e8',
                    shadowOffsetY: 15,
                    shadowOffsetX: 8,

                },
            },
        },
        tooltip: {
            formatter: function (s) {
                if (s.componentSubType === 'effectScatter') {
                    return s.marker + s.name
                }
                return ''
            }
        },
        series: [{
            name: '标记',
            type: 'effectScatter',
            coordinateSystem: 'geo',
            data: [],
            showEffectOn: 'render',
            rippleEffect: {
                brushType: 'stroke'
            },
            hoverAnimation: true,
            symbolOffset: [0, -20],


            itemStyle: {
                normal: {
                    color: 'yellow',
                    shadowBlur: 0,
                    shadowColor: 'yellow'
                }
            },
            zlevel: 1
        }, {
            type: 'map',
            mapType: 'jiangs',
            left: '280',
            selectedMode: 'single',
            // zoom: 1.2,
            roam: false, //是否开启鼠标缩放和平移漫游
            itemStyle: { //地图区域的多边形 图形样式
                // color: ['rgb(11,85,142)', 'rgb(13,106,177)'],
                normal: { //是图形在默认状态下的样式
                    label: {
                        show: true, //是否显示标签
                        textStyle: {
                            color: 'transparent'
                        },
                    },
                    borderWidth: 1,
                    borderColor: '#fff',
                    areaColor: 'red',
                },
                emphasis: { //是图形在高亮状态下的样式,比如在鼠标悬浮或者图例联动高亮时
                    label: {
                        show: false,
                        textStyle: {
                            color: 'transparent'
                        },
                    },
                    borderColor: '#fff',
                    areaColor: '#FFD82C',
                }
            },
            // data: data
            data: []
        }]
    },
    map: {
        visualMap: { //颜色的设置  dataRange
            show: false,
            x: 'left',
            y: 'center',
            seriesIndex: [1],
            min: 0,
            max: 200,
            text: ['高', '低'], // 文本，默认为数值文本
            textStyle: {
                color: '#fff'
            },
            inRange: {
                color: []
            }
        },
        geo: {
            map: 'jiangs',
            left: '280',
            itemStyle: { //地图区域的多边形 图形样式
                color: '#fff',
                normal: { //是图形在默认状态下的样式
                    label: {
                        show: true, //是否显示标签
                        textStyle: {
                            color: '#ff0'
                        },
                    },

                    borderWidth: 1,
                    borderColor: 'rgba(255,255,255)',
                    shadowColor: '#e8e8e8',
                    shadowOffsetY: 15,
                    shadowOffsetX: 8,

                },
            },
        },
        series: [{
            name: '标记',
            type: 'scatter',
            left: '260',
            coordinateSystem: 'geo',
            data: [],

            showEffectOn: 'render',
            rippleEffect: {
                brushType: 'stroke'
            },
            hoverAnimation: true,
            symbolOffset: [0, -20],
            label: {
                show: true,
                offset: [0, -10],
                formatter: function (param) {
                    return param.value[2] + '\n' + param.name
                },
                textStyle: {
                    color: '#fff',
                    fontWeight: 'bold',
                    fontSize: '100%'
                },
            },
            itemStyle: {
                normal: {
                    color: 'yellow',
                    shadowBlur: 0,
                    shadowColor: 'yellow'
                }
            },
            zlevel: 1
        }, {
            type: 'map',
            mapType: 'jiangs',
            left: '280',
            selectedMode: 'single',
            // zoom: 1.2,
            roam: false, //是否开启鼠标缩放和平移漫游
            itemStyle: { //地图区域的多边形 图形样式
                // color: ['rgb(11,85,142)', 'rgb(13,106,177)'],
                normal: { //是图形在默认状态下的样式
                    label: {
                        show: true, //是否显示标签
                        textStyle: {
                            color: 'transparent'
                        },
                    },
                    borderWidth: 1,
                    borderColor: '#fff',
                    areaColor: 'red',
                },
                emphasis: { //是图形在高亮状态下的样式,比如在鼠标悬浮或者图例联动高亮时
                    label: {
                        show: false,
                        textStyle: {
                            color: 'transparent'
                        },
                    },
                    borderColor: '#fff',
                    areaColor: '#FFD82C',
                }
            },
            // data: data
            data: []
        }]
    }
}


